<%@ Import namespace="ASPDotNetSamples"%>
<%@ Page CodeBehind="PDTResponse.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="ASPDotNetSamples.PDTResponse" %>
<HTML>
	<HEAD>
		<title>PayPal PDT Response</title>
	</HEAD>
	<body>
		<table cellSpacing="0" cellPadding="0" width="600" align="center" border="0">
			<tr>
				<td>
					<asp:placeholder id=PDTPlaceHolder Runat="server" Visible="<%#PDTPlaceHolderVisible%>">
						<TABLE width="600" align="center">
							<TBODY>
								<TR>
									<TD align="center" colSpan="2"><FONT face="Verdana" color="black" size="2"><B>Payment 
												Success Landing Page</B>
											<table cellSpacing="6" cellPadding="2" border="0">
												<TBODY>
													<tr>
														<td align="left"><FONT face="Verdana" color="black" size="2">This page is a 
																placeholder. Once your buyers complete a payment at PayPal, PayPal redirects 
																your buyers back to a URL you specify.</FONT>
														</td>
													</tr>
													<tr>
														<td align="left"><FONT face="Verdana" color="black" size="2">This URL where your buyers 
																are sent is declared as a variable in the buy now button. PayPal includes a 
																subset of transaction information in the GET statement:</FONT>
														</td>
													</tr>
													<tr>
														<td align="center"><FONT face="Verdana" color="black" size="2"><b>Variables returned in 
																	HTTP GET</b></FONT></td>
													</tr>
													<tr>
														<td><asp:label id="pdttableGet" runat="server"></asp:label></td>
													</tr>
													<tr>
														<td align="left"><FONT face="Verdana" color="black" size="2">PayPal also includes 
																detailed transactional information through two different methods, IPN and PDT.</FONT></td>
													</tr>
								</TR>
								<tr>
									<td align="center"><B><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">IPN</SPAN></B></td>
								</tr>
			</tr>
			<tr>
				<td align="left"><FONT face="Verdana" color="black" size="2">IPN is an asynchronous 
						notification method through HTTP. In this process PayPal sends a form post back 
						to you asynchronously showing the status of this transaction. Under most 
						circumstances the payment details are sent to your server within a few minutes.<BR>
					</SPAN><A id=IPNLink href="logs/<%=Constants.PAYPAL_IPN_LOG%>" >Click here to view 
						IPN logs for this transaction</A></FONT>
				</td>
			</tr>
			</TR>
			<tr>
				<td align="center"><FONT face="Verdana" color="black" size="2"><b>PDT</b></FONT></td>
			</tr>
			<tr>
				<td align="left"><FONT face="Verdana" color="black" size="2">PDT is a synchronous 
						method through HTTP. In this process, the GET statement from PayPal includes a 
						transaction token. This token can be passed back to PayPal to get further 
						details on the transaction. A listing of PDT variables from this transaction 
						are displayed below.</FONT>
				</td>
			</tr>
			<tr>
				<td align="left"><FONT face="Verdana" color="black" size="2">PayPal recommends using 
						IPN over using the transaction token when fulfilling orders or reconciling your 
						payments because PDT is triggered only when a buyer returns back to your 
						website. If the buyer closes his browser before returning, PDT will not 
						complete.</FONT></td>
			</tr>
		</table>
		</FONT></TD></TR>
		<TR>
			<TD align="center"><FONT face="Verdana" color="black" size="2"><!---!--><B>Variables 
						returned in HTTP Post </B></FONT>
			</TD>
		</TR>
		<TR>
			<TD align="center"><FONT face="Verdana" color="black" size="2"><asp:label id="pdttable" runat="server"></asp:label></FONT></TD>
		</TR>
		</TBODY></TABLE></asp:placeholder>
		<asp:placeholder 
      id=NoIdentityTokenPlaceHolder 
      Visible="<%#NoIdentityTokenPlaceHolderVisible%>" Runat="server">
			<CENTER>You did not supply an Identity Token so PDT is not enabled.</CENTER>
		</asp:placeholder></TD></TR></TBODY></TABLE><font face="Verdana" color="black" size="2"><A href="Default.aspx">Home</A></font>
	</body>
</HTML>
